/*
  @author: 13813
  @date: 2024/11/12 11:16
*/
public class Array2Demo01 {
    public static void main(String[] args) {
        int[][] arr = new int[3][2];

        arr[1][1] = 10;
        arr[0][1] = 20;

        //遍历
//        System.out.println(arr[1][1]);
//        System.out.println(arr[0][1]);

        for (int i = 0; i < arr.length; i++) { //遍历二维数组
//            System.out.println(arr[i]);
            for (int j = 0; j < arr[i].length; j++) {//遍历二维数组中的一维数组
                System.out.println(arr[i][j]);
            }
        }


        /*
            张三 20 男
         */
        String name = "张三";
        int age = 20;
        String sex = "男";
        String[] stu1 = {"张三", "20", "男"};
        String[] stu2 = {"李四", "30", "男"};
        String[] stu3 = {"王五", "40", "男"};

        String[][] stus = new String[3][3];

        stus[0] = stu1;
        stus[1] = stu2;
        stus[2] = stu3;

    }
}
